Grid Size:
Check out the code here.